export function dateConversion(value) {
    var d = new Date(value);

    var date = d.getFullYear() + '-'
        + ((d.getMonth() + 1) * 1 < 10 ? `0${d.getMonth() + 1}` : `${d.getMonth() + 1}`)
        + '-' + (d.getDate() * 1 < 10 ? `0${d.getDate()}` : `${d.getDate()}`)
        + ' ' + (d.getHours() * 1 < 10 ? `0${d.getHours()}` : `${d.getHours()}`)
        + ":" + (d.getMinutes() * 1 < 10 ? `0${d.getMinutes()}` : `${d.getMinutes()}`)
        + ":" + (d.getSeconds() * 1 < 10 ? `0${d.getSeconds()}` : `${d.getSeconds()}`)
    return date;
}